package com.budwk.app.enterprise.models;

import com.budwk.app.domain.vo.PageVo;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class BaseCommonModel extends PageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column("created_by")
    @Comment("创建人")
    @ColDefine(type = ColType.VARCHAR,width = 32)
    private String createdBy;

    @Column("createdAt")
    @Comment("创建时间")
    private LocalDateTime createdAt;

    @Column("updated_by")
    @Comment("修改人")
    @ColDefine(type = ColType.VARCHAR,width = 32)
    private String updatedBy;

    @Column("updatedAt")
    @Comment("修改时间")
    private LocalDateTime updatedAt;

    @Column
    @Comment("删除标记")
    @ColDefine(type = ColType.BOOLEAN)
    private Boolean isDelete = false;
}
